<?php
namespace Auth\Controller;
use Todo\Service\LoginService;
use Todo\Controller\BaseController;

/**
 * 退出登录状态
 * Class LogoutController
 * @package Auth\Controller
 */
class LogoutController extends BaseController {

    /**
     * 登录页面
     */
    public function index(){
        LoginService::getInstance()->doLogout();
        header('Location: '.C('AUTH.LOGOUT'));
    }
}